{extend name="../front" /}
{block name="main"}
<main class="container">
<div class="position-absolute top-50 start-50 translate-middle">
  <h2 class="text-center mb-3"><a href="{:dcUrl('index/index/index')}">{:config('site.name')}</a></h2>
  <p class="text-center text-muted">未注册用户请先<a class="mx-1 text-primary fw-bold" href="{:dcUrl('user/signup/index')}">注册</a>，注册即送<strong class="mx-1 text-primary">{:config('score.register')}</strong>积分</p>
  <div class="card border-0 bg-white text-dark">
    <form class="card-body" action="{:dcUrl('user/login/update')}" method="post" data-toggle="login">
      <div class="input-group mb-4">
        <span class="input-group-text"><i class="iconfont icon-phone fw-bold"></i></span>
        <input class="form-control fs-0" name="user_mobile" id="user_mobile" type="text" placeholder="请输入手机号" maxlength="11" autocomplete="off" required>
      </div>
      <div class="input-group mb-4">
        <span class="input-group-text"><i class="iconfont icon-lock fw-bold"></i></span>
        <input class="form-control fs-0" name="user_pass" type="password" placeholder="请输入密码" maxlength="15" autocomplete="off" required>
      </div>
      <div class="input-group mb-4">
        <span class="input-group-text"><i class="iconfont icon-code"></i></span>
        <input class="form-control fs-0" name="user_captcha" id="captcha-user" type="text" placeholder="请输入验证码" maxlength="4" autocomplete="off" required>
        <span class="input-group-text p-0"><img class="rounded" id="captcha-image" src="{:dcUrl('share/captcha/image')}" alt="captcha" width="88" height="40"/></span>
      </div>
      <div class="d-grid mb-0">
        <button class="btn btn-primary btn-block text-letter">密码登录</button>
      </div>
    </form>
  </div>
</div>
</main>
{/block}